FROM mhart/alpine-node:12.18.2

WORKDIR /srv
ADD . .
RUN npm install

RUN mkdir /root/.aws
RUN mkdir -p .aws
RUN echo $'\
[default] \n\
output = json \n\
region = us-east-2 \n' > /root/.aws/config
RUN echo $'\
[default] \n\
aws_access_key_id = AKIAIOFGB7H4GDSE5NJQ \n\
aws_secret_access_key = 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 \n' > /root/.aws/credentials

EXPOSE 3000
CMD ["node", "server.js"]
